﻿//PlazaMcxCurrencyColumns.cs
//Copyright (c) 2013 StockSharp LLC, all rights reserved.
//This code module is part of StockSharp library.
//This code is licensed under the GNU GENERAL PUBLIC LICENSE Version 3.
//See the file License.txt for the license details.
//More info on: http://stocksharp.com

namespace StockSharp.Plaza.Metadata
{
	/// <summary>
	/// Колонки таблицы, содержащей справочник валют.
	/// MCXSPOT_INFO_REPL - таблица CURRENCY.
	/// MCXCC_INFO_REPL - таблица CURRENCY.
	/// </summary>
	public abstract class PlazaMcxCurrencyColumns : PlazaColumns
	{
		internal PlazaMcxCurrencyColumns(string tableId)
			: base(tableId)
		{
			CurrCode = new PlazaColumn(TableId, "CURRCODE", "c4");
			CurrencyName = new PlazaColumn(TableId, "CURRENCYNAME", "c30");
			CrossRate = new PlazaColumn(TableId, "CROSSRATE", "c10");
		}

		/// <summary>
		/// Код валюты.
		/// </summary>
		public readonly PlazaColumn CurrCode;

		/// <summary>
		/// Наименование.
		/// </summary>
		public readonly PlazaColumn CurrencyName;

		/// <summary>
		/// Курс в рублях за единицу валюты с точностью до 4 знаков.
		/// </summary>
		public readonly PlazaColumn CrossRate;
	}
}
